import java.util.Scanner;

public class Ca {

    public static void main(String[] args) {
        
        byte bt = 54; // 8bit
        System.out.println("byte : " + bt);

        short st = 4566;// 16bit
        System.out.println("short : " + st);

        int it = 2346;//32bit
        System.out.println("int : " + it);

        long lt = 6576L;//64bit
        System.out.println("long : " + lt);

        float ft = 34.22f; //0.0f ,32bit
        System.out.println("float : " + ft);

        double db = 234.45d;//0.0d , 64bit
        System.out.println("double : " + db);

        boolean bn = true; // true | false
        System.out.println("boolean : " + bn);

        char letter = 'A';
        System.out.println("char : " + letter);



        System.out.println("========================= equals =========================");
        Integer xx = 5;
        Short y = 5;
        boolean flag = xx.equals(y);
        System.out.println(flag);

    
        // change stringn to charater Array and get the first one.
        String Str = new String("www.w3cschool.cn"); 
        System.out.println( Str.toCharArray()[0] );

		
        double[] myList = {1.9, 2.9, 3.4, 3.5};
        for (double d : myList) {
            System.out.println(d);
        }


     

        // get the params
        // Scanner scanner = new Scanner(System.in);

        // System.out.println("please input the Integer code : ");
        // int input = scanner.nextInt();
        // System.out.println("get the input : " + input);
        

        // System.out.println("please input the String code : ");
        // String str = scanner.next();
        // System.out.println("get the Str : " + str);

        // scanner.close();
    }

}